/*
 *	(*^。^*) TFrameWork License (*^。^*)
 */

/*
 *  Title : 轨道样式基类
 *
 *  Description :
 *
 *
 *  Date :
 *
 *  Author : DengPing
 *
 *  Modify :
 */
using UnityEngine.UIElements;

namespace TFrameWork.Module.ActionEditor
{
    public abstract class TrackStyleBase
    {
        public VisualElement menuParent;
        public VisualElement contentParent;

        public VisualElement menuRoot;
        public VisualElement contentRoot;

        public virtual void TickPreView(int frameIndex)
        {
            
        }
        
        /// <summary>
        /// 刷新显示
        /// </summary>
        public virtual void ResetView()
        {
            
        }

        public virtual void DrawGizmos()
        {
            
        }

        public virtual void OnSceneGUI()
        {
            
        }
        
        public virtual void OnDestroy()
        {
            if (menuRoot != null) menuParent.Remove(menuRoot);
            if (contentRoot != null) contentParent.Remove(contentRoot);
        }
    }
}